package com.store.dto.response;

import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Map;

@Data
public class DashboardResponse {
    private String username;
    private String role;
    private LocalDateTime lastLoginTime;
    private Integer pendingOrders;
    private BigDecimal todaySales;
    private ProductInfo topProduct;
    private SalesTrend salesTrend;
    private CategorySales categorySales;
    private CategoryPercentage categoryPercentage;
    
    @Data
    public static class ProductInfo {
        private Long id;
        private String name;
        private BigDecimal sales;
    }
    
    @Data
    public static class SalesTrend {
        private String[] months;
        private BigDecimal[] values;
    }
    
    @Data
    public static class CategorySales {
        private String[] years;
        private Map<String, BigDecimal[]> values;
    }
    
    @Data
    public static class CategoryPercentage {
        private String[] categories;
        private BigDecimal[] percentages;
    }
} 